/**
 * Created by Administrator on 2017/4/3.
 */
var app = angular.module('index', []);

app.controller('projectCtrl', function ($scope, $http) {
    $http({
        method: 'post',
        url: '/project/projects'
    }).then(function successCallback(response) {
        $scope.projects = response.data;
        console.log(response.data);
    }, function errorCallback(response) {
        // 请求失败执行代码
    });

});
